window.onload = function() {
    var user = document.getElementById('user')
    var psd = document.getElementById('psd')
    var btn = document.getElementById('btn')
    btn.onclick = function() {
        if (user.value == 'u123') {
            if (psd.value == '123') {
                alert('登录成功！')
                window.location = '../../../hospital/hospital.html'
            } else {
                alert('密码不正确')
            }
        } else {
            alert('该账号不存在')
        }
    }
}